<header id="topbar" class="">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="#stats/feedback/">用户反馈</a>
            </li>
        </ol>
    </div>
</header>

<section id="content" class="animated fadeIn">
    <%if(items.length>0){%>
    <div class="panel overflow">
        <table class="table table-striped fs13" id="main-list">
            <thead>
            <tr class="bg-light">
                <th class="sortable" data-field="id">用户反馈ID</th>
                <th class="sortable" data-field="created_at">创建时间</th>
                <th>用户ID</th>
                <th>用户名</th>
                <th class="" width="250px">反馈内容</th>
                <th class="">联系方式</th>
                <th class="">渠道</th>
                <th>版本号</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody class="admin-form">
            <% var i = 0;
            _.each(items, function(item){ %>
            <tr data-id="<%= item.id %>">
                <td class=""> <%= item.id %></td>
                <td class=""><%= item.created_at %></td>
                <td class=""><a href="#stats/account/?id=<%= item.user_id %>"><%= item.user_id %><a></td>
                <td class=""><%= item.nick_name %></td>
                <td class=""><%= item.content %></td>
                <td class=""><%= item.qq %></td>
                <td class=""><%= item.chn %></td>
                <td><%= item.cvc %></td>
                <td>
                    <%if(null == item.notification_id){%>
                    <button class="btn btn-default btn-sm" id="reply-feedback" onclick="feedback.replyFeedbackBtnClicked(<%= i%>)">回复</button>
                    <%}else{%>
                    已回复
                    <%}%>
                </td>
            </tr>
            <% i++;
            }) %>
            </tbody>
        </table>
    </div>

    <div>
        <div class="pull-left" id="page-tips"></div>
        <div id="paginator"></div>
    </div>
    <% }else{ %>
    <h4 class="text-muted">无数据</h4>
    <% } %>
</section>

<!-- 反馈回复框 start -->
<div id="ReplyFeedbackDialog" class="reply-feedback-dialog" style="display:none">
    <div class="content">
        <span class="withdraw-limit">请输入回复内容:</span>
        <input id="item_id" style="display:none">
        <div>
            <input id="reply-content" type="text" placeholder="">
        </div>
        <div class="">
            <Button id="closeBtn" type="button" class="btn btn-danger">关闭</Button>
            <Button id="saveBtn" type="button" class="btn btn-success">确定</Button>
        </div>
    </div>
</div>


